const Router = require("koa-router");
const { verifyUser } = require("../middleware/user-middleware");
const {
  getTest1,
  getTest2,
  getProblem1,
  getProblem2,
} = require("../controller/answer-controller");
const answerRouter = new Router({
  prefix: "/answer",
});

answerRouter.get("/test1", verifyUser, getTest1);
answerRouter.get("/test2", verifyUser, getTest2);
answerRouter.get("/problem1", verifyUser, getProblem1);
answerRouter.get("/problem2", verifyUser, getProblem2);

module.exports = answerRouter;
